﻿<controls:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="SGTLightAccent.Views.NuevoClienteWindow"
           Width="412" Height="555" 
           Title="Nuevo Cliente"
           DataContext="{Binding Main, Source={StaticResource Locator}}" >
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
        	<RowDefinition />
        	<RowDefinition Height="Auto" MinHeight="51" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,13,30,9" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Margin="0,13,119,9" Grid.Row="1" HorizontalAlignment="Right" Width="75" />
    	<sdk:Label Content="Dirección" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,74,234,0" x:Name="label1" VerticalAlignment="Top" Width="75" />
    	<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,39,71,0" x:Name="textBoxd1" Text="{Binding NuevoRemito.Numero_Remito, Mode=TwoWay}" VerticalAlignment="Top" Width="150" />
    	<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,75,30,0" x:Name="textBox1" Text="{Binding Mode=TwoWay, Path=ClienteNuevo.Direccion}" VerticalAlignment="Top" Width="191" />
    	<sdk:Label Content="Teléfono" FontWeight="Bold" HorizontalContentAlignment="Right" Margin="0,149,234,0" x:Name="label5" HorizontalAlignment="Right" Width="75" Height="28" VerticalAlignment="Top" />
    	<TextBox IsReadOnly="False" Margin="169,149,30,0" x:Name="textBox3" Text="{Binding Mode=TwoWay, Path=ClienteNuevo.Telefono}" Height="28" VerticalAlignment="Top" />
    	<sdk:Label Content="Empresa" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,39,234,0" x:Name="label9" VerticalAlignment="Top" Width="75" />
    	<sdk:Label Content="Contacto" FontWeight="Bold" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,110,235,0" x:Name="label1_Copy1" Width="75" Height="28" VerticalAlignment="Top" />
    	<TextBox HorizontalAlignment="Right" IsReadOnly="False" Margin="0,110,71,0" x:Name="textBox1_Copy1" Text="{Binding NuevoRemito.Matricula_2, Mode=TwoWay}" Width="150" Height="28" VerticalAlignment="Top" />
    	<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,39,30,0" x:Name="textBoxd1_Copy" Text="{Binding Mode=TwoWay, Path=ClienteNuevo.Nombre}" VerticalAlignment="Top" Width="191" />
    	<TextBox HorizontalAlignment="Right" IsReadOnly="False" Margin="0,110,30,0" x:Name="textBox1_Copy" Text="{Binding Mode=TwoWay, Path=ClienteNuevo.Contacto}" Width="191" Height="28" VerticalAlignment="Top" />
    	<TextBox HorizontalAlignment="Right" IsReadOnly="False" Margin="0,0,30,168" x:Name="txtCorreo" Text="{Binding Mode=TwoWay, Path=registrationData.Email}" Width="191" Height="28" VerticalAlignment="Bottom" IsEnabled="False" />
    	<sdk:Label Content="Correo" FontWeight="Bold" HorizontalContentAlignment="Right" Margin="81,0,234,169" x:Name="label1_Copy3" Height="28" VerticalAlignment="Bottom" />
    	<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,0,30,204" x:Name="txtUsuario" Text="{Binding Mode=TwoWay, Path=registrationData.UserName}" VerticalAlignment="Bottom" Width="191" IsEnabled="False" />
    	<sdk:Label Content="Usuario" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,234,204" x:Name="label9_Copy1" VerticalAlignment="Bottom" Width="75" />
    	<sdk:Label Content="Contraseña" FontWeight="Bold" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,235,133" x:Name="label1_Copy4" Width="75" Height="28" VerticalAlignment="Bottom" />
        <sdk:Label Content="Confirmar contraseña" FontWeight="Bold" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,234,94" x:Name="label1_Copy5" Width="150" Height="28" VerticalAlignment="Bottom" />
    	<PasswordBox Margin="169,0,30,94" RenderTransformOrigin="0.553,1.643" Height="28" VerticalAlignment="Bottom" x:Name="confirmarContrasena" IsEnabled="False" Password="{Binding Path=registrationData.PasswordConfirmation}" />
    	<Path Data="M17,160 L382.08765,160" Fill="#FF7E7E7E" Height="1" Margin="8,195,6.912,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" VerticalAlignment="Top"/>
        <PasswordBox Height="28" Margin="169,0,30,133" RenderTransformOrigin="0.553,1.643" VerticalAlignment="Bottom" x:Name="contrasena" IsEnabled="False" Password="{Binding Path=registrationData.Password}" />
        <sdk:Label HorizontalAlignment="Left" Height="22" Margin="8,8,0,0" VerticalAlignment="Top" Width="45" Content="Cliente" FontStyle="Italic"/>
        <sdk:Label HorizontalAlignment="Left" Margin="8,200,0,181" Width="75" Content="Acceso web" FontStyle="Italic"/>
        <CheckBox Content="Habilitar acceso" x:Name="chkCrearUsuario" HorizontalAlignment="Right" Margin="0,0,30,25" VerticalAlignment="Bottom" IsChecked="{Binding Path=HabilitarAcceso, Mode=TwoWay}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
        <CheckBox Content="Reiniciar contraseña" HorizontalAlignment="Right" IsChecked="{Binding Path=ReiniciarPass, Mode=TwoWay}" Margin="0,0,30,60" Name="chkPassReset" VerticalAlignment="Bottom" IsEnabled="{Binding Path=ReiniciarPassEnable}" />
    </Grid>
</controls:ChildWindow>